﻿<!DOCTYPE HTML>
<html>
<head>
	<meta charset="utf-8">
	<meta name="renderer" content="webkit|ie-comp|ie-stand">
	<link rel="Bookmark" href="../imgs/favicon.ico"/>
	<link rel="Shortcut Icon" href="../imgs/favicon.ico"/>
	<link rel="stylesheet" type="text/css" href="../static/h-ui/css/H-ui.min.css"/>
	<link rel="stylesheet" type="text/css" href="../static/h-ui.admin/css/H-ui.admin.css"/>
	<link rel="stylesheet" type="text/css" href="../lib/Hui-iconfont/1.0.8/iconfont.css"/>
	<link rel="stylesheet" type="text/css" href="../static/h-ui.admin/skin/default/skin.css" id="skin"/>
	<link rel="stylesheet" type="text/css" href="../static/h-ui.admin/css/style.css"/>
	<title>商城</title>
	<style type="text/css">
	</style>
</head>
<body>
<!--顶部-->
<header class="navbar-wrapper"></header>
<!--左侧菜单-->
<aside class="Hui-aside">
	<div class="menu_dropdown bk_2" id="leftMenu"></div>
</aside>

<!--首页-->
<section class="Hui-article-box">
	<nav class="breadcrumb">
		<i class="Hui-iconfont">&#xe67f;</i>
		<a href="../index.html" class="maincolor">首页</a>
		<span class="c-gray en">&gt;</span> 渠道管理
		<span class="c-gray en">&gt;</span> 订单
	</nav>
	<div class="Hui-article">
		<article class="cl pd-20">
			<div class="cl pd-5 bg-1 bk-gray">
				<span class="l">
					<a href="order.html" class="btn btn-primary radius">
						所有订单
					</a>
					<a href="order.html?status=1" class="btn btn-primary radius">
						未付款
					</a>
					<a href="order.html?status=2" class="btn btn-primary radius">
						审核中
					</a>
					<a href="order.html?status=3" class="btn btn-primary radius">
						未发货
					</a>
					<!--<a href="javascript:;" onclick="batchSend();" class="btn btn-primary radius">-->
						<!--批量发货-->
					<!--</a>-->
					<a href="javascript:;" onclick="batch_send('批量发货','order-batch-send.html');" class="btn btn-primary radius">
						批量发货
					</a>
					<!--<a href="javascript:;" onclick="daochu();" class="btn btn-primary radius">-->
						<!--点击导出-->
					<!--</a>-->
					<!--<span id="down"></span>-->
					<a href="javascript:;" class="btn btn-primary radius" onclick="outExcel();">点击导出</a>
				</span>
				<span class="r">共有数据：<strong id="pageTotal">0</strong> 条</span>
			</div>
			<div class="cl pd-5 bg-1 bk-gray">
				<span class="text-c" style="margin-left: 20px;">
					<input type="text" class="input-text Wdate" style="width: 120px;" id="logmin"
						   placeholder="输入开始"
						   onfocus="WdatePicker({maxDate:'#F{$dp.$D(\'logmax\')||\'%y-%M-%d %h:%i:$s\'}'})"/>
					-
					<input type="text" class="input-text Wdate" style="width: 120px;" id="logmax"
						   placeholder="输入结束"
						   onfocus="WdatePicker({minDate:'#F{$dp.$D(\'logmin\')}',maxDate:'%y-%M-%d'})"/>
					<input type="text" class="input-text" placeholder="搜索订单号" style="width: 150px;" id="orderno"/>
					<input type="text" class="input-text" placeholder="搜索手机号" style="width: 150px;" id="phone"/>
					<!--<button class="btn btn-success" onclick="getList();">-->
					<button class="btn btn-success" onclick="toSearch();">
						<i class="Hui-iconfont">&#xe665;</i> 搜索
					</button>
				</span>
			</div>
			<div class="mt-10">
				<table class="table table-border table-bordered table-hover table-bg">
					<thead>
					<tr>
						<th scope="col" colspan="20">订单列表</th>
					</tr>
					<tr class="text-c">
						<!--<th width="25"><input type="checkbox" onclick="selAll();"></th>-->
						<th>ID</th>
						<th width="100">订单号</th>
						<th width="80">渠道商</th>
						<th>手机号</th>
						<th width="200">商品信息</th>
						<th>总价(元)</th>
						<th width="60">收件人</th>
						<th width="60">收件人地址</th>
						<th>交易状态</th>
						<th>操作</th>
					</tr>
					</thead>
					<tbody>
					<tr class="text-c">
						<td>-</td>
						<td>-</td>
						<td>-</td>
						<td>-</td>
						<td>-</td>
						<td>-</td>
						<td>-</td>
						<td>-</td>
						<td>-</td>
						<td>-</td>
					</tr>
					</tbody>
				</table>
				<div id="pageHtml"></div>
			</div>
		</article>
	</div>
</section>

<!--自定义弹窗-->
<span id="msgPop"></span>
</body>
</html>


<script type="text/javascript" src="../lib/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="../lib/layer/2.4/layer.js"></script>
<script type="text/javascript" src="../static/h-ui/js/H-ui.js"></script>
<script type="text/javascript" src="../static/h-ui.admin/js/H-ui.admin.page.js"></script>
<script type="text/javascript" src="../lib/My97DatePicker/4.8/WdatePicker.js"></script>
<script type="text/javascript" src="../js/config.js"></script>
<script type="text/javascript" src="../js/view.js"></script>
<script type="text/javascript" src="../js/qudao/order.js"></script>
<script type="text/javascript">
	var formArys = [];
//	var selArys = []; //批量ID
//	var idAll = []; //所有ID
	var pages = {
		start: 1, limit: 5, total: 0,
		url: '/admin/qudao/order.html',
		excel: 'qdorder'
	};
	var status = getParamByUrl('status');
	pages.start = getParamByUrl('start');
	pages.start = pages.start ? pages.start : 1;
	var start_day = getParamByUrl('start_day');
	var end_day = getParamByUrl('end_day');
	var orderno = getParamByUrl('orderno');
	var phone = getParamByUrl('phone');
	(function () {
		$('#logmin')[0].value = start_day;
		$('#logmax')[0].value = end_day;
		$('#orderno')[0].value = orderno;
		$('#phone')[0].value = phone;
		getList();
	})();
	function toSearch(){
		var url = pages.url;
		url += '?start=' + pages.start;
		url += '&start_day=' + $('#logmin').val();
		url += '&end_day=' + $('#logmax').val();
		url += '&orderno=' + $('#orderno').val();
		url += '&phone=' + $('#phone').val();
		window.location.href = url;
	}
//	//点选
//	function selOne(v){
//		if ($.inArray(v, selArys) > -1) { //在数组中则移除
//			var selNew = $.grep(selArys, function(value) {
//				return value != v;
//			});
//			selArys = selNew;
//		} else { //不在数组中则加上
//			selArys.push(v);
//		}
//		console.log(selArys);
//	}
//	//全选|全不选
//	function selAll(){
//		console.log(idAll);
////		$.each(idAll, function (index, value) {
////		});
//		if (selArys.length > 0) {
//			selArys = [];
//			$('input[type="checkbox"]').checked = false;
//		} else {
//			selArys = idAll;
//			$('input[type="checkbox"]').checked = true;
//		}
//	}
//	//批量发货
//	function batchSend(){
//		console.log(selArys);
//		if (selArys.length == 0) {
//			msgPop({msg: '没有选择'}); return
//		}
//		order_send('发货','order-send.html', selArys.join('||'));
//	}
</script>